<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>用户登录</TITLE><LINK 
href="web/pages/css/Default.css" type=text/css rel=stylesheet><LINK 
href="web/pages/css/xtree.css" type=text/css rel=stylesheet><LINK 
href="web/pages/css/User_Login.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.6000.16674" name=GENERATOR></HEAD>
<script type="text/javascript" src="web/pages/js/jquery-1.7.1.min.js"></script>
		<script type="text/javascript" src="web/pages/js/md5.js"></script>
		
		<script type="text/javascript">
	function login(){
	  var m = hex_md5($("#TxtPassword").val());
			$.ajax({
				type: "POST",
				url: "userLogin.action",
				dateType: "json",
				data: {"username": $("#TxtUserName").val(), "password": m},
				success: function(returnedData){
						
						var json = eval( "("+returnedData+")" );
						if(json.loginStatus=="loginSuccess")
						{
						window.location="index.action";
						}
						else
						{
						var str = "<font color=red>"+json.loginStatus+"</font-color>";
						$("#show").html(str);
						}
				}
			});
	
	}
window.onload=function(){document.getElementById("TxtUserName").focus();};
	</script>

<BODY id=userlogin_body>
<s:include value="/web/pages/admin/LangSelector.jsp"/>
<DIV></DIV>

<DIV id=user_login>
<DL>
  <DD id=user_top>
  <UL>
    <LI class=user_top_l></LI>
    <LI class=user_top_c></LI>
    <LI class=user_top_r></LI></UL>
  <DD id=user_main>
  <UL>
    <LI class=user_main_l></LI>
    <LI class=user_main_c>
    <DIV class=user_main_box>
    
    <UL>
      <LI class=user_main_text><s:text name="login.username"/>：</LI>
      <LI class=user_main_input><INPUT class=TxtUserNameCssClass id="TxtUserName" 
      maxLength=20 > </LI></UL>
    <UL>
      <LI class=user_main_text><s:property value="%{getText('login.password')}"/>：</LI>
      <LI class=user_main_input><INPUT class=TxtPasswordCssClass id="TxtPassword" type=password> </LI></br>
         <LI class=user_main_input> <div id="show"></div> </LI>
		<br />
      
      </UL>
   </DIV></LI>
    <LI class=user_main_r><INPUT class=IbtnEnterCssClass id=IbtnEnter 
    style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" 
    onclick="login()" 
    type=image src="web/pages/images/login/user_botton.gif" name=IbtnEnter> </LI>
   
    </UL>
    
  <DD id=user_bottom>

  <UL>
    <LI class=user_bottom_l></LI>
    <LI class=user_bottom_c> </LI>
    <LI class=user_bottom_r></LI></UL></DD></DL></DIV><SPAN id=ValrUserName 
style="DISPLAY: none; COLOR: red"></SPAN><SPAN id=ValrPassword 
style="DISPLAY: none; COLOR: red"></SPAN><SPAN id=ValrValidateCode 
style="DISPLAY: none; COLOR: red"></SPAN>
<DIV id=ValidationSummary1 style="DISPLAY: none; COLOR: red"></DIV>

<DIV></DIV>

</BODY>
</HTML>
